Termination w.r.t. Q of the following Term Rewriting System could be proven:

Q restricted rewrite system:
The TRS R consists of the following rules:

active(eq(0, 0)) → mark(true)
active(eq(s(X), s(Y))) → mark(eq(X, Y))
active(eq(X, Y)) → mark(false)
active(inf(X)) → mark(cons(X, inf(s(X))))
active(take(0, X)) → mark(nil)
active(take(s(X), cons(Y, L))) → mark(cons(Y, take(X, L)))
active(length(nil)) → mark(0)
active(length(cons(X, L))) → mark(s(length(L)))
mark(eq(X1, X2)) → active(eq(X1, X2))
mark(0) → active(0)
mark(true) → active(true)
mark(s(X)) → active(s(X))
mark(false) → active(false)
mark(inf(X)) → active(inf(mark(X)))
mark(cons(X1, X2)) → active(cons(X1, X2))
mark(take(X1, X2)) → active(take(mark(X1), mark(X2)))
mark(nil) → active(nil)
mark(length(X)) → active(length(mark(X)))
eq(mark(X1), X2) → eq(X1, X2)
eq(X1, mark(X2)) → eq(X1, X2)
eq(active(X1), X2) → eq(X1, X2)
eq(X1, active(X2)) → eq(X1, X2)
s(mark(X)) → s(X)
s(active(X)) → s(X)
inf(mark(X)) → inf(X)
inf(active(X)) → inf(X)
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
cons(X1, active(X2)) → cons(X1, X2)
take(mark(X1), X2) → take(X1, X2)
take(X1, mark(X2)) → take(X1, X2)
take(active(X1), X2) → take(X1, X2)
take(X1, active(X2)) → take(X1, X2)
length(mark(X)) → length(X)
length(active(X)) → length(X)

Q is empty.


QTRS
  ↳ DependencyPairsProof

Q restricted rewrite system:
The TRS R consists of the following rules:

active(eq(0, 0)) → mark(true)
active(eq(s(X), s(Y))) → mark(eq(X, Y))
active(eq(X, Y)) → mark(false)
active(inf(X)) → mark(cons(X, inf(s(X))))
active(take(0, X)) → mark(nil)
active(take(s(X), cons(Y, L))) → mark(cons(Y, take(X, L)))
active(length(nil)) → mark(0)
active(length(cons(X, L))) → mark(s(length(L)))
mark(eq(X1, X2)) → active(eq(X1, X2))
mark(0) → active(0)
mark(true) → active(true)
mark(s(X)) → active(s(X))
mark(false) → active(false)
mark(inf(X)) → active(inf(mark(X)))
mark(cons(X1, X2)) → active(cons(X1, X2))
mark(take(X1, X2)) → active(take(mark(X1), mark(X2)))
mark(nil) → active(nil)
mark(length(X)) → active(length(mark(X)))
eq(mark(X1), X2) → eq(X1, X2)
eq(X1, mark(X2)) → eq(X1, X2)
eq(active(X1), X2) → eq(X1, X2)
eq(X1, active(X2)) → eq(X1, X2)
s(mark(X)) → s(X)
s(active(X)) → s(X)
inf(mark(X)) → inf(X)
inf(active(X)) → inf(X)
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
cons(X1, active(X2)) → cons(X1, X2)
take(mark(X1), X2) → take(X1, X2)
take(X1, mark(X2)) → take(X1, X2)
take(active(X1), X2) → take(X1, X2)
take(X1, active(X2)) → take(X1, X2)
length(mark(X)) → length(X)
length(active(X)) → length(X)

Q is empty.

Using Dependency Pairs [1,15] we result in the following initial DP problem:
Q DP problem:
The TRS P consists of the following rules:

ACTIVE(length(cons(X, L))) → S(length(L))
ACTIVE(length(cons(X, L))) → MARK(s(length(L)))
TAKE(X1, active(X2)) → TAKE(X1, X2)
CONS(X1, mark(X2)) → CONS(X1, X2)
MARK(true) → ACTIVE(true)
MARK(length(X)) → MARK(X)
MARK(take(X1, X2)) → MARK(X1)
MARK(take(X1, X2)) → TAKE(mark(X1), mark(X2))
MARK(inf(X)) → ACTIVE(inf(mark(X)))
S(active(X)) → S(X)
MARK(false) → ACTIVE(false)
ACTIVE(take(0, X)) → MARK(nil)
EQ(X1, mark(X2)) → EQ(X1, X2)
MARK(inf(X)) → INF(mark(X))
ACTIVE(inf(X)) → S(X)
MARK(s(X)) → ACTIVE(s(X))
ACTIVE(eq(s(X), s(Y))) → EQ(X, Y)
TAKE(active(X1), X2) → TAKE(X1, X2)
ACTIVE(take(s(X), cons(Y, L))) → TAKE(X, L)
ACTIVE(inf(X)) → INF(s(X))
MARK(length(X)) → ACTIVE(length(mark(X)))
MARK(length(X)) → LENGTH(mark(X))
TAKE(mark(X1), X2) → TAKE(X1, X2)
CONS(active(X1), X2) → CONS(X1, X2)
MARK(cons(X1, X2)) → ACTIVE(cons(X1, X2))
ACTIVE(inf(X)) → CONS(X, inf(s(X)))
MARK(take(X1, X2)) → MARK(X2)
CONS(mark(X1), X2) → CONS(X1, X2)
EQ(mark(X1), X2) → EQ(X1, X2)
ACTIVE(length(cons(X, L))) → LENGTH(L)
EQ(X1, active(X2)) → EQ(X1, X2)
CONS(X1, active(X2)) → CONS(X1, X2)
EQ(active(X1), X2) → EQ(X1, X2)
LENGTH(mark(X)) → LENGTH(X)
MARK(inf(X)) → MARK(X)
INF(active(X)) → INF(X)
LENGTH(active(X)) → LENGTH(X)
MARK(take(X1, X2)) → ACTIVE(take(mark(X1), mark(X2)))
ACTIVE(inf(X)) → MARK(cons(X, inf(s(X))))
S(mark(X)) → S(X)
ACTIVE(take(s(X), cons(Y, L))) → CONS(Y, take(X, L))
ACTIVE(eq(X, Y)) → MARK(false)
ACTIVE(eq(0, 0)) → MARK(true)
ACTIVE(length(nil)) → MARK(0)
TAKE(X1, mark(X2)) → TAKE(X1, X2)
MARK(eq(X1, X2)) → ACTIVE(eq(X1, X2))
ACTIVE(eq(s(X), s(Y))) → MARK(eq(X, Y))
MARK(0) → ACTIVE(0)
ACTIVE(take(s(X), cons(Y, L))) → MARK(cons(Y, take(X, L)))
MARK(nil) → ACTIVE(nil)
INF(mark(X)) → INF(X)

The TRS R consists of the following rules:

active(eq(0, 0)) → mark(true)
active(eq(s(X), s(Y))) → mark(eq(X, Y))
active(eq(X, Y)) → mark(false)
active(inf(X)) → mark(cons(X, inf(s(X))))
active(take(0, X)) → mark(nil)
active(take(s(X), cons(Y, L))) → mark(cons(Y, take(X, L)))
active(length(nil)) → mark(0)
active(length(cons(X, L))) → mark(s(length(L)))
mark(eq(X1, X2)) → active(eq(X1, X2))
mark(0) → active(0)
mark(true) → active(true)
mark(s(X)) → active(s(X))
mark(false) → active(false)
mark(inf(X)) → active(inf(mark(X)))
mark(cons(X1, X2)) → active(cons(X1, X2))
mark(take(X1, X2)) → active(take(mark(X1), mark(X2)))
mark(nil) → active(nil)
mark(length(X)) → active(length(mark(X)))
eq(mark(X1), X2) → eq(X1, X2)
eq(X1, mark(X2)) → eq(X1, X2)
eq(active(X1), X2) → eq(X1, X2)
eq(X1, active(X2)) → eq(X1, X2)
s(mark(X)) → s(X)
s(active(X)) → s(X)
inf(mark(X)) → inf(X)
inf(active(X)) → inf(X)
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
cons(X1, active(X2)) → cons(X1, X2)
take(mark(X1), X2) → take(X1, X2)
take(X1, mark(X2)) → take(X1, X2)
take(active(X1), X2) → take(X1, X2)
take(X1, active(X2)) → take(X1, X2)
length(mark(X)) → length(X)
length(active(X)) → length(X)

Q is empty.
We have to consider all minimal (P,Q,R)-chains.

↳ QTRS
  ↳ DependencyPairsProof
QDP
      ↳ DependencyGraphProof

Q DP problem:
The TRS P consists of the following rules:

ACTIVE(length(cons(X, L))) → S(length(L))
ACTIVE(length(cons(X, L))) → MARK(s(length(L)))
TAKE(X1, active(X2)) → TAKE(X1, X2)
CONS(X1, mark(X2)) → CONS(X1, X2)
MARK(true) → ACTIVE(true)
MARK(length(X)) → MARK(X)
MARK(take(X1, X2)) → MARK(X1)
MARK(take(X1, X2)) → TAKE(mark(X1), mark(X2))
MARK(inf(X)) → ACTIVE(inf(mark(X)))
S(active(X)) → S(X)
MARK(false) → ACTIVE(false)
ACTIVE(take(0, X)) → MARK(nil)
EQ(X1, mark(X2)) → EQ(X1, X2)
MARK(inf(X)) → INF(mark(X))
ACTIVE(inf(X)) → S(X)
MARK(s(X)) → ACTIVE(s(X))
ACTIVE(eq(s(X), s(Y))) → EQ(X, Y)
TAKE(active(X1), X2) → TAKE(X1, X2)
ACTIVE(take(s(X), cons(Y, L))) → TAKE(X, L)
ACTIVE(inf(X)) → INF(s(X))
MARK(length(X)) → ACTIVE(length(mark(X)))
MARK(length(X)) → LENGTH(mark(X))
TAKE(mark(X1), X2) → TAKE(X1, X2)
CONS(active(X1), X2) → CONS(X1, X2)
MARK(cons(X1, X2)) → ACTIVE(cons(X1, X2))
ACTIVE(inf(X)) → CONS(X, inf(s(X)))
MARK(take(X1, X2)) → MARK(X2)
CONS(mark(X1), X2) → CONS(X1, X2)
EQ(mark(X1), X2) → EQ(X1, X2)
ACTIVE(length(cons(X, L))) → LENGTH(L)
EQ(X1, active(X2)) → EQ(X1, X2)
CONS(X1, active(X2)) → CONS(X1, X2)
EQ(active(X1), X2) → EQ(X1, X2)
LENGTH(mark(X)) → LENGTH(X)
MARK(inf(X)) → MARK(X)
INF(active(X)) → INF(X)
LENGTH(active(X)) → LENGTH(X)
MARK(take(X1, X2)) → ACTIVE(take(mark(X1), mark(X2)))
ACTIVE(inf(X)) → MARK(cons(X, inf(s(X))))
S(mark(X)) → S(X)
ACTIVE(take(s(X), cons(Y, L))) → CONS(Y, take(X, L))
ACTIVE(eq(X, Y)) → MARK(false)
ACTIVE(eq(0, 0)) → MARK(true)
ACTIVE(length(nil)) → MARK(0)
TAKE(X1, mark(X2)) → TAKE(X1, X2)
MARK(eq(X1, X2)) → ACTIVE(eq(X1, X2))
ACTIVE(eq(s(X), s(Y))) → MARK(eq(X, Y))
MARK(0) → ACTIVE(0)
ACTIVE(take(s(X), cons(Y, L))) → MARK(cons(Y, take(X, L)))
MARK(nil) → ACTIVE(nil)
INF(mark(X)) → INF(X)

The TRS R consists of the following rules:

active(eq(0, 0)) → mark(true)
active(eq(s(X), s(Y))) → mark(eq(X, Y))
active(eq(X, Y)) → mark(false)
active(inf(X)) → mark(cons(X, inf(s(X))))
active(take(0, X)) → mark(nil)
active(take(s(X), cons(Y, L))) → mark(cons(Y, take(X, L)))
active(length(nil)) → mark(0)
active(length(cons(X, L))) → mark(s(length(L)))
mark(eq(X1, X2)) → active(eq(X1, X2))
mark(0) → active(0)
mark(true) → active(true)
mark(s(X)) → active(s(X))
mark(false) → active(false)
mark(inf(X)) → active(inf(mark(X)))
mark(cons(X1, X2)) → active(cons(X1, X2))
mark(take(X1, X2)) → active(take(mark(X1), mark(X2)))
mark(nil) → active(nil)
mark(length(X)) → active(length(mark(X)))
eq(mark(X1), X2) → eq(X1, X2)
eq(X1, mark(X2)) → eq(X1, X2)
eq(active(X1), X2) → eq(X1, X2)
eq(X1, active(X2)) → eq(X1, X2)
s(mark(X)) → s(X)
s(active(X)) → s(X)
inf(mark(X)) → inf(X)
inf(active(X)) → inf(X)
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
cons(X1, active(X2)) → cons(X1, X2)
take(mark(X1), X2) → take(X1, X2)
take(X1, mark(X2)) → take(X1, X2)
take(active(X1), X2) → take(X1, X2)
take(X1, active(X2)) → take(X1, X2)
length(mark(X)) → length(X)
length(active(X)) → length(X)

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
The approximation of the Dependency Graph [15,17,22] contains 7 SCCs with 19 less nodes.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
QDP
            ↳ UsableRulesProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

LENGTH(mark(X)) → LENGTH(X)
LENGTH(active(X)) → LENGTH(X)

The TRS R consists of the following rules:

active(eq(0, 0)) → mark(true)
active(eq(s(X), s(Y))) → mark(eq(X, Y))
active(eq(X, Y)) → mark(false)
active(inf(X)) → mark(cons(X, inf(s(X))))
active(take(0, X)) → mark(nil)
active(take(s(X), cons(Y, L))) → mark(cons(Y, take(X, L)))
active(length(nil)) → mark(0)
active(length(cons(X, L))) → mark(s(length(L)))
mark(eq(X1, X2)) → active(eq(X1, X2))
mark(0) → active(0)
mark(true) → active(true)
mark(s(X)) → active(s(X))
mark(false) → active(false)
mark(inf(X)) → active(inf(mark(X)))
mark(cons(X1, X2)) → active(cons(X1, X2))
mark(take(X1, X2)) → active(take(mark(X1), mark(X2)))
mark(nil) → active(nil)
mark(length(X)) → active(length(mark(X)))
eq(mark(X1), X2) → eq(X1, X2)
eq(X1, mark(X2)) → eq(X1, X2)
eq(active(X1), X2) → eq(X1, X2)
eq(X1, active(X2)) → eq(X1, X2)
s(mark(X)) → s(X)
s(active(X)) → s(X)
inf(mark(X)) → inf(X)
inf(active(X)) → inf(X)
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
cons(X1, active(X2)) → cons(X1, X2)
take(mark(X1), X2) → take(X1, X2)
take(X1, mark(X2)) → take(X1, X2)
take(active(X1), X2) → take(X1, X2)
take(X1, active(X2)) → take(X1, X2)
length(mark(X)) → length(X)
length(active(X)) → length(X)

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We can use the usable rules and reduction pair processor [15] with the Ce-compatible extension of the polynomial order that maps every function symbol to the sum of its argument. Then, we can delete all non-usable rules [17] from R.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
            ↳ UsableRulesProof
QDP
                ↳ QDPSizeChangeProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

LENGTH(mark(X)) → LENGTH(X)
LENGTH(active(X)) → LENGTH(X)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
QDP
            ↳ UsableRulesProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

TAKE(X1, active(X2)) → TAKE(X1, X2)
TAKE(active(X1), X2) → TAKE(X1, X2)
TAKE(mark(X1), X2) → TAKE(X1, X2)
TAKE(X1, mark(X2)) → TAKE(X1, X2)

The TRS R consists of the following rules:

active(eq(0, 0)) → mark(true)
active(eq(s(X), s(Y))) → mark(eq(X, Y))
active(eq(X, Y)) → mark(false)
active(inf(X)) → mark(cons(X, inf(s(X))))
active(take(0, X)) → mark(nil)
active(take(s(X), cons(Y, L))) → mark(cons(Y, take(X, L)))
active(length(nil)) → mark(0)
active(length(cons(X, L))) → mark(s(length(L)))
mark(eq(X1, X2)) → active(eq(X1, X2))
mark(0) → active(0)
mark(true) → active(true)
mark(s(X)) → active(s(X))
mark(false) → active(false)
mark(inf(X)) → active(inf(mark(X)))
mark(cons(X1, X2)) → active(cons(X1, X2))
mark(take(X1, X2)) → active(take(mark(X1), mark(X2)))
mark(nil) → active(nil)
mark(length(X)) → active(length(mark(X)))
eq(mark(X1), X2) → eq(X1, X2)
eq(X1, mark(X2)) → eq(X1, X2)
eq(active(X1), X2) → eq(X1, X2)
eq(X1, active(X2)) → eq(X1, X2)
s(mark(X)) → s(X)
s(active(X)) → s(X)
inf(mark(X)) → inf(X)
inf(active(X)) → inf(X)
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
cons(X1, active(X2)) → cons(X1, X2)
take(mark(X1), X2) → take(X1, X2)
take(X1, mark(X2)) → take(X1, X2)
take(active(X1), X2) → take(X1, X2)
take(X1, active(X2)) → take(X1, X2)
length(mark(X)) → length(X)
length(active(X)) → length(X)

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We can use the usable rules and reduction pair processor [15] with the Ce-compatible extension of the polynomial order that maps every function symbol to the sum of its argument. Then, we can delete all non-usable rules [17] from R.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
            ↳ UsableRulesProof
QDP
                ↳ QDPSizeChangeProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

TAKE(X1, active(X2)) → TAKE(X1, X2)
TAKE(mark(X1), X2) → TAKE(X1, X2)
TAKE(active(X1), X2) → TAKE(X1, X2)
TAKE(X1, mark(X2)) → TAKE(X1, X2)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
QDP
            ↳ UsableRulesProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

CONS(X1, active(X2)) → CONS(X1, X2)
CONS(mark(X1), X2) → CONS(X1, X2)
CONS(active(X1), X2) → CONS(X1, X2)
CONS(X1, mark(X2)) → CONS(X1, X2)

The TRS R consists of the following rules:

active(eq(0, 0)) → mark(true)
active(eq(s(X), s(Y))) → mark(eq(X, Y))
active(eq(X, Y)) → mark(false)
active(inf(X)) → mark(cons(X, inf(s(X))))
active(take(0, X)) → mark(nil)
active(take(s(X), cons(Y, L))) → mark(cons(Y, take(X, L)))
active(length(nil)) → mark(0)
active(length(cons(X, L))) → mark(s(length(L)))
mark(eq(X1, X2)) → active(eq(X1, X2))
mark(0) → active(0)
mark(true) → active(true)
mark(s(X)) → active(s(X))
mark(false) → active(false)
mark(inf(X)) → active(inf(mark(X)))
mark(cons(X1, X2)) → active(cons(X1, X2))
mark(take(X1, X2)) → active(take(mark(X1), mark(X2)))
mark(nil) → active(nil)
mark(length(X)) → active(length(mark(X)))
eq(mark(X1), X2) → eq(X1, X2)
eq(X1, mark(X2)) → eq(X1, X2)
eq(active(X1), X2) → eq(X1, X2)
eq(X1, active(X2)) → eq(X1, X2)
s(mark(X)) → s(X)
s(active(X)) → s(X)
inf(mark(X)) → inf(X)
inf(active(X)) → inf(X)
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
cons(X1, active(X2)) → cons(X1, X2)
take(mark(X1), X2) → take(X1, X2)
take(X1, mark(X2)) → take(X1, X2)
take(active(X1), X2) → take(X1, X2)
take(X1, active(X2)) → take(X1, X2)
length(mark(X)) → length(X)
length(active(X)) → length(X)

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We can use the usable rules and reduction pair processor [15] with the Ce-compatible extension of the polynomial order that maps every function symbol to the sum of its argument. Then, we can delete all non-usable rules [17] from R.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ UsableRulesProof
QDP
                ↳ QDPSizeChangeProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

CONS(mark(X1), X2) → CONS(X1, X2)
CONS(X1, active(X2)) → CONS(X1, X2)
CONS(X1, mark(X2)) → CONS(X1, X2)
CONS(active(X1), X2) → CONS(X1, X2)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
QDP
            ↳ UsableRulesProof
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

INF(active(X)) → INF(X)
INF(mark(X)) → INF(X)

The TRS R consists of the following rules:

active(eq(0, 0)) → mark(true)
active(eq(s(X), s(Y))) → mark(eq(X, Y))
active(eq(X, Y)) → mark(false)
active(inf(X)) → mark(cons(X, inf(s(X))))
active(take(0, X)) → mark(nil)
active(take(s(X), cons(Y, L))) → mark(cons(Y, take(X, L)))
active(length(nil)) → mark(0)
active(length(cons(X, L))) → mark(s(length(L)))
mark(eq(X1, X2)) → active(eq(X1, X2))
mark(0) → active(0)
mark(true) → active(true)
mark(s(X)) → active(s(X))
mark(false) → active(false)
mark(inf(X)) → active(inf(mark(X)))
mark(cons(X1, X2)) → active(cons(X1, X2))
mark(take(X1, X2)) → active(take(mark(X1), mark(X2)))
mark(nil) → active(nil)
mark(length(X)) → active(length(mark(X)))
eq(mark(X1), X2) → eq(X1, X2)
eq(X1, mark(X2)) → eq(X1, X2)
eq(active(X1), X2) → eq(X1, X2)
eq(X1, active(X2)) → eq(X1, X2)
s(mark(X)) → s(X)
s(active(X)) → s(X)
inf(mark(X)) → inf(X)
inf(active(X)) → inf(X)
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
cons(X1, active(X2)) → cons(X1, X2)
take(mark(X1), X2) → take(X1, X2)
take(X1, mark(X2)) → take(X1, X2)
take(active(X1), X2) → take(X1, X2)
take(X1, active(X2)) → take(X1, X2)
length(mark(X)) → length(X)
length(active(X)) → length(X)

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We can use the usable rules and reduction pair processor [15] with the Ce-compatible extension of the polynomial order that maps every function symbol to the sum of its argument. Then, we can delete all non-usable rules [17] from R.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ UsableRulesProof
QDP
                ↳ QDPSizeChangeProof
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

INF(active(X)) → INF(X)
INF(mark(X)) → INF(X)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
QDP
            ↳ UsableRulesProof
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

S(mark(X)) → S(X)
S(active(X)) → S(X)

The TRS R consists of the following rules:

active(eq(0, 0)) → mark(true)
active(eq(s(X), s(Y))) → mark(eq(X, Y))
active(eq(X, Y)) → mark(false)
active(inf(X)) → mark(cons(X, inf(s(X))))
active(take(0, X)) → mark(nil)
active(take(s(X), cons(Y, L))) → mark(cons(Y, take(X, L)))
active(length(nil)) → mark(0)
active(length(cons(X, L))) → mark(s(length(L)))
mark(eq(X1, X2)) → active(eq(X1, X2))
mark(0) → active(0)
mark(true) → active(true)
mark(s(X)) → active(s(X))
mark(false) → active(false)
mark(inf(X)) → active(inf(mark(X)))
mark(cons(X1, X2)) → active(cons(X1, X2))
mark(take(X1, X2)) → active(take(mark(X1), mark(X2)))
mark(nil) → active(nil)
mark(length(X)) → active(length(mark(X)))
eq(mark(X1), X2) → eq(X1, X2)
eq(X1, mark(X2)) → eq(X1, X2)
eq(active(X1), X2) → eq(X1, X2)
eq(X1, active(X2)) → eq(X1, X2)
s(mark(X)) → s(X)
s(active(X)) → s(X)
inf(mark(X)) → inf(X)
inf(active(X)) → inf(X)
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
cons(X1, active(X2)) → cons(X1, X2)
take(mark(X1), X2) → take(X1, X2)
take(X1, mark(X2)) → take(X1, X2)
take(active(X1), X2) → take(X1, X2)
take(X1, active(X2)) → take(X1, X2)
length(mark(X)) → length(X)
length(active(X)) → length(X)

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We can use the usable rules and reduction pair processor [15] with the Ce-compatible extension of the polynomial order that maps every function symbol to the sum of its argument. Then, we can delete all non-usable rules [17] from R.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ UsableRulesProof
QDP
                ↳ QDPSizeChangeProof
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

S(active(X)) → S(X)
S(mark(X)) → S(X)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
QDP
            ↳ UsableRulesProof
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

EQ(active(X1), X2) → EQ(X1, X2)
EQ(X1, mark(X2)) → EQ(X1, X2)
EQ(mark(X1), X2) → EQ(X1, X2)
EQ(X1, active(X2)) → EQ(X1, X2)

The TRS R consists of the following rules:

active(eq(0, 0)) → mark(true)
active(eq(s(X), s(Y))) → mark(eq(X, Y))
active(eq(X, Y)) → mark(false)
active(inf(X)) → mark(cons(X, inf(s(X))))
active(take(0, X)) → mark(nil)
active(take(s(X), cons(Y, L))) → mark(cons(Y, take(X, L)))
active(length(nil)) → mark(0)
active(length(cons(X, L))) → mark(s(length(L)))
mark(eq(X1, X2)) → active(eq(X1, X2))
mark(0) → active(0)
mark(true) → active(true)
mark(s(X)) → active(s(X))
mark(false) → active(false)
mark(inf(X)) → active(inf(mark(X)))
mark(cons(X1, X2)) → active(cons(X1, X2))
mark(take(X1, X2)) → active(take(mark(X1), mark(X2)))
mark(nil) → active(nil)
mark(length(X)) → active(length(mark(X)))
eq(mark(X1), X2) → eq(X1, X2)
eq(X1, mark(X2)) → eq(X1, X2)
eq(active(X1), X2) → eq(X1, X2)
eq(X1, active(X2)) → eq(X1, X2)
s(mark(X)) → s(X)
s(active(X)) → s(X)
inf(mark(X)) → inf(X)
inf(active(X)) → inf(X)
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
cons(X1, active(X2)) → cons(X1, X2)
take(mark(X1), X2) → take(X1, X2)
take(X1, mark(X2)) → take(X1, X2)
take(active(X1), X2) → take(X1, X2)
take(X1, active(X2)) → take(X1, X2)
length(mark(X)) → length(X)
length(active(X)) → length(X)

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We can use the usable rules and reduction pair processor [15] with the Ce-compatible extension of the polynomial order that maps every function symbol to the sum of its argument. Then, we can delete all non-usable rules [17] from R.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ UsableRulesProof
QDP
                ↳ QDPSizeChangeProof
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

EQ(X1, mark(X2)) → EQ(X1, X2)
EQ(active(X1), X2) → EQ(X1, X2)
EQ(mark(X1), X2) → EQ(X1, X2)
EQ(X1, active(X2)) → EQ(X1, X2)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
QDP
            ↳ QDPOrderProof

Q DP problem:
The TRS P consists of the following rules:

ACTIVE(inf(X)) → MARK(cons(X, inf(s(X))))
MARK(take(X1, X2)) → MARK(X2)
ACTIVE(length(cons(X, L))) → MARK(s(length(L)))
MARK(s(X)) → ACTIVE(s(X))
MARK(length(X)) → ACTIVE(length(mark(X)))
MARK(eq(X1, X2)) → ACTIVE(eq(X1, X2))
MARK(length(X)) → MARK(X)
ACTIVE(eq(s(X), s(Y))) → MARK(eq(X, Y))
MARK(take(X1, X2)) → MARK(X1)
MARK(inf(X)) → MARK(X)
ACTIVE(take(s(X), cons(Y, L))) → MARK(cons(Y, take(X, L)))
MARK(cons(X1, X2)) → ACTIVE(cons(X1, X2))
MARK(inf(X)) → ACTIVE(inf(mark(X)))
MARK(take(X1, X2)) → ACTIVE(take(mark(X1), mark(X2)))

The TRS R consists of the following rules:

active(eq(0, 0)) → mark(true)
active(eq(s(X), s(Y))) → mark(eq(X, Y))
active(eq(X, Y)) → mark(false)
active(inf(X)) → mark(cons(X, inf(s(X))))
active(take(0, X)) → mark(nil)
active(take(s(X), cons(Y, L))) → mark(cons(Y, take(X, L)))
active(length(nil)) → mark(0)
active(length(cons(X, L))) → mark(s(length(L)))
mark(eq(X1, X2)) → active(eq(X1, X2))
mark(0) → active(0)
mark(true) → active(true)
mark(s(X)) → active(s(X))
mark(false) → active(false)
mark(inf(X)) → active(inf(mark(X)))
mark(cons(X1, X2)) → active(cons(X1, X2))
mark(take(X1, X2)) → active(take(mark(X1), mark(X2)))
mark(nil) → active(nil)
mark(length(X)) → active(length(mark(X)))
eq(mark(X1), X2) → eq(X1, X2)
eq(X1, mark(X2)) → eq(X1, X2)
eq(active(X1), X2) → eq(X1, X2)
eq(X1, active(X2)) → eq(X1, X2)
s(mark(X)) → s(X)
s(active(X)) → s(X)
inf(mark(X)) → inf(X)
inf(active(X)) → inf(X)
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
cons(X1, active(X2)) → cons(X1, X2)
take(mark(X1), X2) → take(X1, X2)
take(X1, mark(X2)) → take(X1, X2)
take(active(X1), X2) → take(X1, X2)
take(X1, active(X2)) → take(X1, X2)
length(mark(X)) → length(X)
length(active(X)) → length(X)

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [15].


The following pairs can be oriented strictly and are deleted.


MARK(take(X1, X2)) → MARK(X2)
MARK(take(X1, X2)) → MARK(X1)
MARK(inf(X)) → MARK(X)
MARK(inf(X)) → ACTIVE(inf(mark(X)))
MARK(take(X1, X2)) → ACTIVE(take(mark(X1), mark(X2)))
The remaining pairs can at least be oriented weakly.

ACTIVE(inf(X)) → MARK(cons(X, inf(s(X))))
ACTIVE(length(cons(X, L))) → MARK(s(length(L)))
MARK(s(X)) → ACTIVE(s(X))
MARK(length(X)) → ACTIVE(length(mark(X)))
MARK(eq(X1, X2)) → ACTIVE(eq(X1, X2))
MARK(length(X)) → MARK(X)
ACTIVE(eq(s(X), s(Y))) → MARK(eq(X, Y))
ACTIVE(take(s(X), cons(Y, L))) → MARK(cons(Y, take(X, L)))
MARK(cons(X1, X2)) → ACTIVE(cons(X1, X2))
Used ordering: Polynomial interpretation [25]:

POL(0) = 0   
POL(ACTIVE(x1)) = 1   
POL(MARK(x1)) = 1 + x1   
POL(active(x1)) = 0   
POL(cons(x1, x2)) = 0   
POL(eq(x1, x2)) = 0   
POL(false) = 0   
POL(inf(x1)) = 1 + x1   
POL(length(x1)) = x1   
POL(mark(x1)) = 0   
POL(nil) = 0   
POL(s(x1)) = 0   
POL(take(x1, x2)) = 1 + x1 + x2   
POL(true) = 0   

The following usable rules [17] were oriented:

eq(active(X1), X2) → eq(X1, X2)
eq(mark(X1), X2) → eq(X1, X2)
eq(X1, active(X2)) → eq(X1, X2)
eq(X1, mark(X2)) → eq(X1, X2)
cons(X1, active(X2)) → cons(X1, X2)
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
s(active(X)) → s(X)
s(mark(X)) → s(X)



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ QDPOrderProof
QDP
                ↳ QDPOrderProof

Q DP problem:
The TRS P consists of the following rules:

MARK(eq(X1, X2)) → ACTIVE(eq(X1, X2))
MARK(length(X)) → MARK(X)
ACTIVE(inf(X)) → MARK(cons(X, inf(s(X))))
ACTIVE(eq(s(X), s(Y))) → MARK(eq(X, Y))
ACTIVE(length(cons(X, L))) → MARK(s(length(L)))
MARK(s(X)) → ACTIVE(s(X))
ACTIVE(take(s(X), cons(Y, L))) → MARK(cons(Y, take(X, L)))
MARK(length(X)) → ACTIVE(length(mark(X)))
MARK(cons(X1, X2)) → ACTIVE(cons(X1, X2))

The TRS R consists of the following rules:

active(eq(0, 0)) → mark(true)
active(eq(s(X), s(Y))) → mark(eq(X, Y))
active(eq(X, Y)) → mark(false)
active(inf(X)) → mark(cons(X, inf(s(X))))
active(take(0, X)) → mark(nil)
active(take(s(X), cons(Y, L))) → mark(cons(Y, take(X, L)))
active(length(nil)) → mark(0)
active(length(cons(X, L))) → mark(s(length(L)))
mark(eq(X1, X2)) → active(eq(X1, X2))
mark(0) → active(0)
mark(true) → active(true)
mark(s(X)) → active(s(X))
mark(false) → active(false)
mark(inf(X)) → active(inf(mark(X)))
mark(cons(X1, X2)) → active(cons(X1, X2))
mark(take(X1, X2)) → active(take(mark(X1), mark(X2)))
mark(nil) → active(nil)
mark(length(X)) → active(length(mark(X)))
eq(mark(X1), X2) → eq(X1, X2)
eq(X1, mark(X2)) → eq(X1, X2)
eq(active(X1), X2) → eq(X1, X2)
eq(X1, active(X2)) → eq(X1, X2)
s(mark(X)) → s(X)
s(active(X)) → s(X)
inf(mark(X)) → inf(X)
inf(active(X)) → inf(X)
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
cons(X1, active(X2)) → cons(X1, X2)
take(mark(X1), X2) → take(X1, X2)
take(X1, mark(X2)) → take(X1, X2)
take(active(X1), X2) → take(X1, X2)
take(X1, active(X2)) → take(X1, X2)
length(mark(X)) → length(X)
length(active(X)) → length(X)

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [15].


The following pairs can be oriented strictly and are deleted.


MARK(length(X)) → MARK(X)
MARK(length(X)) → ACTIVE(length(mark(X)))
The remaining pairs can at least be oriented weakly.

MARK(eq(X1, X2)) → ACTIVE(eq(X1, X2))
ACTIVE(inf(X)) → MARK(cons(X, inf(s(X))))
ACTIVE(eq(s(X), s(Y))) → MARK(eq(X, Y))
ACTIVE(length(cons(X, L))) → MARK(s(length(L)))
MARK(s(X)) → ACTIVE(s(X))
ACTIVE(take(s(X), cons(Y, L))) → MARK(cons(Y, take(X, L)))
MARK(cons(X1, X2)) → ACTIVE(cons(X1, X2))
Used ordering: Polynomial interpretation with max and min functions [25]:

POL(0) = 0   
POL(ACTIVE(x1)) = 0   
POL(MARK(x1)) = x1   
POL(active(x1)) = 0   
POL(cons(x1, x2)) = 0   
POL(eq(x1, x2)) = 0   
POL(false) = 0   
POL(inf(x1)) = 0   
POL(length(x1)) = 1 + x1   
POL(mark(x1)) = 0   
POL(nil) = 0   
POL(s(x1)) = 0   
POL(take(x1, x2)) = 0   
POL(true) = 0   

The following usable rules [17] were oriented:

eq(active(X1), X2) → eq(X1, X2)
eq(mark(X1), X2) → eq(X1, X2)
eq(X1, active(X2)) → eq(X1, X2)
eq(X1, mark(X2)) → eq(X1, X2)
cons(X1, active(X2)) → cons(X1, X2)
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
s(active(X)) → s(X)
s(mark(X)) → s(X)



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ QDPOrderProof
              ↳ QDP
                ↳ QDPOrderProof
QDP
                    ↳ QDPOrderProof

Q DP problem:
The TRS P consists of the following rules:

MARK(eq(X1, X2)) → ACTIVE(eq(X1, X2))
ACTIVE(inf(X)) → MARK(cons(X, inf(s(X))))
ACTIVE(eq(s(X), s(Y))) → MARK(eq(X, Y))
ACTIVE(length(cons(X, L))) → MARK(s(length(L)))
MARK(s(X)) → ACTIVE(s(X))
ACTIVE(take(s(X), cons(Y, L))) → MARK(cons(Y, take(X, L)))
MARK(cons(X1, X2)) → ACTIVE(cons(X1, X2))

The TRS R consists of the following rules:

active(eq(0, 0)) → mark(true)
active(eq(s(X), s(Y))) → mark(eq(X, Y))
active(eq(X, Y)) → mark(false)
active(inf(X)) → mark(cons(X, inf(s(X))))
active(take(0, X)) → mark(nil)
active(take(s(X), cons(Y, L))) → mark(cons(Y, take(X, L)))
active(length(nil)) → mark(0)
active(length(cons(X, L))) → mark(s(length(L)))
mark(eq(X1, X2)) → active(eq(X1, X2))
mark(0) → active(0)
mark(true) → active(true)
mark(s(X)) → active(s(X))
mark(false) → active(false)
mark(inf(X)) → active(inf(mark(X)))
mark(cons(X1, X2)) → active(cons(X1, X2))
mark(take(X1, X2)) → active(take(mark(X1), mark(X2)))
mark(nil) → active(nil)
mark(length(X)) → active(length(mark(X)))
eq(mark(X1), X2) → eq(X1, X2)
eq(X1, mark(X2)) → eq(X1, X2)
eq(active(X1), X2) → eq(X1, X2)
eq(X1, active(X2)) → eq(X1, X2)
s(mark(X)) → s(X)
s(active(X)) → s(X)
inf(mark(X)) → inf(X)
inf(active(X)) → inf(X)
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
cons(X1, active(X2)) → cons(X1, X2)
take(mark(X1), X2) → take(X1, X2)
take(X1, mark(X2)) → take(X1, X2)
take(active(X1), X2) → take(X1, X2)
take(X1, active(X2)) → take(X1, X2)
length(mark(X)) → length(X)
length(active(X)) → length(X)

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [15].


The following pairs can be oriented strictly and are deleted.


ACTIVE(inf(X)) → MARK(cons(X, inf(s(X))))
ACTIVE(length(cons(X, L))) → MARK(s(length(L)))
ACTIVE(take(s(X), cons(Y, L))) → MARK(cons(Y, take(X, L)))
The remaining pairs can at least be oriented weakly.

MARK(eq(X1, X2)) → ACTIVE(eq(X1, X2))
ACTIVE(eq(s(X), s(Y))) → MARK(eq(X, Y))
MARK(s(X)) → ACTIVE(s(X))
MARK(cons(X1, X2)) → ACTIVE(cons(X1, X2))
Used ordering: Polynomial interpretation [25]:

POL(ACTIVE(x1)) = x1   
POL(MARK(x1)) = 0   
POL(active(x1)) = x1   
POL(cons(x1, x2)) = 0   
POL(eq(x1, x2)) = 0   
POL(inf(x1)) = 1 + x1   
POL(length(x1)) = 1 + x1   
POL(mark(x1)) = x1   
POL(s(x1)) = 0   
POL(take(x1, x2)) = 1   

The following usable rules [17] were oriented:

eq(active(X1), X2) → eq(X1, X2)
eq(mark(X1), X2) → eq(X1, X2)
eq(X1, active(X2)) → eq(X1, X2)
eq(X1, mark(X2)) → eq(X1, X2)
cons(X1, active(X2)) → cons(X1, X2)
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
s(active(X)) → s(X)
s(mark(X)) → s(X)



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ QDPOrderProof
              ↳ QDP
                ↳ QDPOrderProof
                  ↳ QDP
                    ↳ QDPOrderProof
QDP
                        ↳ UsableRulesProof

Q DP problem:
The TRS P consists of the following rules:

MARK(eq(X1, X2)) → ACTIVE(eq(X1, X2))
ACTIVE(eq(s(X), s(Y))) → MARK(eq(X, Y))
MARK(s(X)) → ACTIVE(s(X))
MARK(cons(X1, X2)) → ACTIVE(cons(X1, X2))

The TRS R consists of the following rules:

active(eq(0, 0)) → mark(true)
active(eq(s(X), s(Y))) → mark(eq(X, Y))
active(eq(X, Y)) → mark(false)
active(inf(X)) → mark(cons(X, inf(s(X))))
active(take(0, X)) → mark(nil)
active(take(s(X), cons(Y, L))) → mark(cons(Y, take(X, L)))
active(length(nil)) → mark(0)
active(length(cons(X, L))) → mark(s(length(L)))
mark(eq(X1, X2)) → active(eq(X1, X2))
mark(0) → active(0)
mark(true) → active(true)
mark(s(X)) → active(s(X))
mark(false) → active(false)
mark(inf(X)) → active(inf(mark(X)))
mark(cons(X1, X2)) → active(cons(X1, X2))
mark(take(X1, X2)) → active(take(mark(X1), mark(X2)))
mark(nil) → active(nil)
mark(length(X)) → active(length(mark(X)))
eq(mark(X1), X2) → eq(X1, X2)
eq(X1, mark(X2)) → eq(X1, X2)
eq(active(X1), X2) → eq(X1, X2)
eq(X1, active(X2)) → eq(X1, X2)
s(mark(X)) → s(X)
s(active(X)) → s(X)
inf(mark(X)) → inf(X)
inf(active(X)) → inf(X)
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
cons(X1, active(X2)) → cons(X1, X2)
take(mark(X1), X2) → take(X1, X2)
take(X1, mark(X2)) → take(X1, X2)
take(active(X1), X2) → take(X1, X2)
take(X1, active(X2)) → take(X1, X2)
length(mark(X)) → length(X)
length(active(X)) → length(X)

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We can use the usable rules and reduction pair processor [15] with the Ce-compatible extension of the polynomial order that maps every function symbol to the sum of its argument. Then, we can delete all non-usable rules [17] from R.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ QDPOrderProof
              ↳ QDP
                ↳ QDPOrderProof
                  ↳ QDP
                    ↳ QDPOrderProof
                      ↳ QDP
                        ↳ UsableRulesProof
QDP
                            ↳ UsableRulesReductionPairsProof

Q DP problem:
The TRS P consists of the following rules:

MARK(eq(X1, X2)) → ACTIVE(eq(X1, X2))
ACTIVE(eq(s(X), s(Y))) → MARK(eq(X, Y))
MARK(s(X)) → ACTIVE(s(X))
MARK(cons(X1, X2)) → ACTIVE(cons(X1, X2))

The TRS R consists of the following rules:

s(active(X)) → s(X)
s(mark(X)) → s(X)
cons(X1, active(X2)) → cons(X1, X2)
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
eq(active(X1), X2) → eq(X1, X2)
eq(mark(X1), X2) → eq(X1, X2)
eq(X1, active(X2)) → eq(X1, X2)
eq(X1, mark(X2)) → eq(X1, X2)

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the usable rules with reduction pair processor [15] with a polynomial ordering [25], all dependency pairs and the corresponding usable rules [17] can be oriented non-strictly. All non-usable rules are removed, and those dependency pairs and usable rules that have been oriented strictly or contain non-usable symbols in their left-hand side are removed as well.

The following dependency pairs can be deleted:

MARK(eq(X1, X2)) → ACTIVE(eq(X1, X2))
ACTIVE(eq(s(X), s(Y))) → MARK(eq(X, Y))
MARK(s(X)) → ACTIVE(s(X))
MARK(cons(X1, X2)) → ACTIVE(cons(X1, X2))
The following rules are removed from R:

eq(active(X1), X2) → eq(X1, X2)
eq(mark(X1), X2) → eq(X1, X2)
eq(X1, active(X2)) → eq(X1, X2)
eq(X1, mark(X2)) → eq(X1, X2)
s(mark(X)) → s(X)
s(active(X)) → s(X)
cons(X1, active(X2)) → cons(X1, X2)
cons(mark(X1), X2) → cons(X1, X2)
cons(X1, mark(X2)) → cons(X1, X2)
cons(active(X1), X2) → cons(X1, X2)
Used ordering: POLO with Polynomial interpretation [25]:

POL(ACTIVE(x1)) = x1   
POL(MARK(x1)) = 1 + 2·x1   
POL(active(x1)) = 2·x1   
POL(cons(x1, x2)) = x1 + x2   
POL(eq(x1, x2)) = 2·x1 + x2   
POL(mark(x1)) = 2·x1   
POL(s(x1)) = 2 + 2·x1   



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ QDPOrderProof
              ↳ QDP
                ↳ QDPOrderProof
                  ↳ QDP
                    ↳ QDPOrderProof
                      ↳ QDP
                        ↳ UsableRulesProof
                          ↳ QDP
                            ↳ UsableRulesReductionPairsProof
QDP
                                ↳ PisEmptyProof

Q DP problem:
P is empty.
R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
The TRS P is empty. Hence, there is no (P,Q,R) chain.